package com.liruo.treasureattic.service.user.controller;

import com.liruo.treasureattic.common.httpmsg.result.BaseResponse;
import com.liruo.treasureattic.common.model.vo.user.UserVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author:liruo
 * @Date:2023-02-15-11:03:55
 * @Desc
 */
@RequestMapping("/user/follow")
public interface FollowController {
    @PostMapping("/tofollow")
    BaseResponse<Boolean> follow(@RequestParam("followingId") Long followingId);

    @PostMapping("/unfollow")
    BaseResponse<Boolean> unfollow(@RequestParam("followingId") Long followingId);

    @PostMapping("/follows")
    BaseResponse<List<UserVo>> getFollowings();

    @PostMapping("/followers")
    BaseResponse<List<UserVo>> getFollowers();
}
